﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dukous.Domain
{
    /// <summary>
    /// 枚举类
    /// </summary>
    public class Enumeration : Entity<long>
    {
        /// <summary>
        /// 获取 / 设置 枚举分类
        /// </summary>
        public virtual EnumerationCategory Category { get; set; }

        /// <summary>
        /// 获取 / 设置 枚举编码
        /// </summary>
        public virtual string Code { get; set; }

        /// <summary>
        /// 获取 / 设置 枚举文本
        /// </summary>
        public virtual string Text { get; set; }

        /// <summary>
        /// 获取 / 设置 枚举描述
        /// </summary>
        public virtual string Description { get; set; }

        /// <summary>
        /// 获取 / 设置 父枚举
        /// </summary>
        public virtual Enumeration Parent { get; set; }

        /// <summary>
        /// 获取 / 设置 子枚举
        /// </summary>
        public virtual IList<Enumeration> Children { get; set; }
    }
}
